package com.zhdl.modules.prefiresys.repository;

import com.project.common.repository.BaseRepository;
import com.zhdl.modules.prefiresys.entity.DefAreaAlarmRec;
import com.zhdl.modules.prefiresys.entity.DetectorHistoryData;
import org.springframework.data.jpa.repository.Query;

/**
 * 探测器开关量明细数据，用于画曲线
 */
public interface DetectorHistoryDataRepository extends BaseRepository<DetectorHistoryData, String> {
    @Query(value = "SELECT * FROM detector_his_data  ORDER BY create_date DESC LIMIT 1", nativeQuery = true)
    DetectorHistoryData findNewData();
}